package learn.demo06;

public class DemoMain {
    public static void main(String[] args) {
        //创建
        Hero hero = new Hero();
        hero.setName("巫妖王");
        hero.setAge(100);
        Weapon weapon = new Weapon("霜之哀伤");
        hero.setWeapon(weapon);

        hero.attack();

    }
}
